/**
 * 
 */
package com.goodedeeds.webapp.controller;

import net.sourceforge.stripes.action.*;

/**
 * @author ravi
 *
 */
@UrlBinding(ProfileAction.URL)
public class ProfileAction extends BaseAuthAction {
	
	public static final String URL = "/Profile.action";
	
	public static final String VIEW = JSP_ROOT + "/profile.jsp";
		
//	private final IAdministrationDao administrationDao;
	
	/**
	 * 
	 */
	public ProfileAction() {
//		administrationDao = AdministrationDaoFactory.getAdministrationDao();
	}


	@DefaultHandler
	@DontValidate
	public Resolution processPage(){
		return new ForwardResolution(VIEW);
	}
	

//	private IUserProfile userProfile;
//	public IUserProfile getUserProfile(){
//		if(userProfile == null){
//			userProfile = administrationDao.getUserPrivateProfile(getAuthUserId());
//		}
//		return userProfile;
//	}
	
	
	public Resolution save(){		
//		administrationDao.updateProfile(getUserProfile());
		return new StreamingResolution("text/html", "Profile Update Success");
	}
	
}
